ShowSourceContent
TheShowSourceContent
method requests the source part of the link to make the source content visible.
void ShowSourceContent ();DISCUSSION
If your part is the destination of this link, you should call this method in your part'sHandleEvent
method after calling theShowLinkDestinationInfo
method if the latter method returns true and its output parameter indicates that the user requested to see the source content. You also should call this method in your part'sEditInLinkAttempted
method if the user elects to find the source of the link.This method causes the source part's
RevealLink
method to be called, making the source content visible.If this method throws an exception, you should display an alert message informing the user that the link source content could not be shown.
EXCEPTIONS
This method may also throw exceptions that were raised by the
kODErrBrokenLink
- Internal error; the link-source object disconnected from its destinations.
kODErrBrokenLinkSource
- The link has been broken at the source.
kODErrCannotFindLinkSource
- Cannot find the source of this cross-document link.
kODErrCannotFindLinkSourceEdition
- The edition file for this cross-document link is missing (the link may have been broken at the source).
ODPart::RevealLink
method.SEE ALSO
TheODLink::ShowLinkDestinationInfo
method (page 357).
TheODPart::EditInLinkAttempted
method (page 509).
TheODPart::RevealLink
method (page 547).
"Selection Info" on page 252 in OpenDoc Programmer's Guide.
"Revealing the Source of a Link" on page 392 in OpenDoc Programmer's Guide.
"Editing a Link Destination" on page 393 in OpenDoc Programmer's Guide.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help